<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>使用vue的全局配置项</title>
<script src="vue.js"></script>
</head>
<body>
<div id="app">
    <input type="text" @keyup.en="showinfo" name="" id="ipt">
</div>
<script>
    Vue.config.keyCodes = {
        en: 13
    }	
    Vue.config.productionTip = false
    let vm = new Vue({
        el: "#app",
        methods: {
            showinfo() {
                console.log("使用vue的全局配置项,",ipt.value);
                
            }
        }
    })
</script>
</body>
</html>
